<?php
/* @var $this UserlogController */
/* @var $model Userlog */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'userlog-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'userid'); ?>
		<?php echo $form->textField($model,'userid',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'userid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'id_member'); ?>
		<?php echo $form->textField($model,'id_member',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'id_member'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'id_card'); ?>
		<?php echo $form->textField($model,'id_card',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'id_card'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'a_head_t'); ?>
		<?php echo $form->textField($model,'a_head_t',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'a_head_t'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'f_name'); ?>
		<?php echo $form->textField($model,'f_name',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'f_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'l_name'); ?>
		<?php echo $form->textField($model,'l_name',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'l_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'a_head_e'); ?>
		<?php echo $form->textField($model,'a_head_e',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'a_head_e'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'f_name_e'); ?>
		<?php echo $form->textField($model,'f_name_e',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'f_name_e'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'l_name_e'); ?>
		<?php echo $form->textField($model,'l_name_e',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'l_name_e'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_sex'); ?>
		<?php echo $form->textField($model,'user_sex',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'user_sex'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo $form->textArea($model,'address',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phone'); ?>
		<?php echo $form->textField($model,'phone',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'phone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'i_email'); ?>
		<?php echo $form->textField($model,'i_email',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'i_email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'x_email'); ?>
		<?php echo $form->textField($model,'x_email',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'x_email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date_inwork'); ?>
		<?php echo $form->textField($model,'date_inwork'); ?>
		<?php echo $form->error($model,'date_inwork'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'position'); ?>
		<?php echo $form->textField($model,'position',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'position'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'departid'); ?>
		<?php echo $form->textField($model,'departid',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'departid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'userlog'); ?>
		<?php echo $form->textField($model,'userlog',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'userlog'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'passlog'); ?>
		<?php echo $form->textField($model,'passlog',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'passlog'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'worktime'); ?>
		<?php echo $form->textField($model,'worktime'); ?>
		<?php echo $form->error($model,'worktime'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->textField($model,'status',array('size'=>13,'maxlength'=>13)); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'send_letter'); ?>
		<?php echo $form->textField($model,'send_letter',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'send_letter'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'active_works'); ?>
		<?php echo $form->textField($model,'active_works',array('size'=>9,'maxlength'=>9)); ?>
		<?php echo $form->error($model,'active_works'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type_emp'); ?>
		<?php echo $form->textField($model,'type_emp',array('size'=>9,'maxlength'=>9)); ?>
		<?php echo $form->error($model,'type_emp'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->